package com.spring.shiro.main.java.model;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class SysLog implements Serializable{

	private static final long serialVersionUID = 2460981669058879604L;
	
	private Long id;
	
	private String loginName;
	
	private String roleName;
	
	private String optContent;
	
	private String clientIp;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" , timezone="GMT+8")
	private Date createTime;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName == null ? null : loginName.trim();
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName == null ? null : roleName.trim();
	}
	public String getOptContent() {
		return optContent;
	}
	public void setOptContent(String optContent) {
		this.optContent = optContent == null ? null : optContent.trim();
		
	}
	public String getClientIp() {
		return clientIp;
	}
	public void setClientIp(String clientIp) {
		this.clientIp = clientIp == null ? null : clientIp.trim();
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Override
	public String toString() {
		return "SysLog [id=" + id + ", loginName=" + loginName + ", roleName="
				+ roleName + ", optContent=" + optContent + ", clientIp=" + clientIp
				+ ", createTime=" + createTime + "]";
	}
	
	
}
